﻿using System;
using System.Diagnostics;
using System.Windows.Forms;
using Log = EventLog;


namespace TEL.TelPhoneF
{
    public class ELog
    {
        private static string m_LogName = "Tel_SimplePhone";

        public static void SaveToEventLog(string message, EventLogEntryType entryType)
        {
            try
            {
                Log.SaveLog log = new Log.SaveLog(Application.ProductName, m_LogName);
                log.SaveEvent(Application.ProductName, message, entryType);
            }
            catch (Exception)
            {

            }
        }
    }
}